<template>
    <div>
        <h1>体验状态机语法{{ count.num }}</h1>
        <n-card title="" size="medium"></n-card>
        
        <n-button type="info" size="medium" @click="count.minus()">通过action修改minus</n-button>

        <!-- <CompB/> -->
        <RouterView />
    </div>
</template>

<script setup>

import { RouterView } from 'vue-router';
import { useCount } from '../../store/count';
import { useStar } from '../../store/star';
import CompB from './CompB.vue';
const count = useCount();
const star = useStar();
star.initStarList()
</script>

<style lang="scss" scoped>

</style>